import { createSSRApp } from "vue";
import App from "./App.vue";

import * as Pinia from 'pinia';
import uviewPlus from 'uview-plus'

import { initRequest } from "./utils/request";

export function createApp() {
  const app = createSSRApp(App);

  // 引入请求库
  initRequest(app)
  
  const pinia = createPinia()
  
  app.use(uviewPlus)
  app.use(Pinia.createPinia());

  return {
    app,
  };
}
